local CARS = {
{0.4326171875, 8.4814453125, 3.1096496582031, 289},
{4.529296875, 4.4296875, 3.1096496582031, 289},
{8.7392578125, -0.8681640625, 3.1096496582031, 289},
{12.880859375, -6.46875, 3.1171875, 289}
}

addEventHandler("onResourceStart", getResourceRootElement(), function()
	for i=1, #CARS do
		local x = CARS[i][1]
		local y = CARS[i][2]
		local z = CARS[i][3]
		local rot = CARS[i][4]
		local car1 = 489
		local car2 = 599
		local rdm = math.random(0, 1)
		local car
		if rdm == 0 then
			local car = createVehicle(car1, x, y, z, 0, 0, rot, "GAYS")
		elseif rdm == 1 then
			local car = createVehicle(car2, x, y, z, 0, 0, rot, "GAYS")
		end
		if car then setVehicleRespawnDelay(car, 5000) end
	end
end)